<#list session['user'].unreadMessages as message>
    <#include "/freemarker/message/notify_message_${message.msgType.name().toLowerCase()}.ftl">
</#list>
<#macro user user>
    <div class="sender">
        <img class="avatar" src="${user.avatar}">
        <a href="/space/${user.id}">${user.nickname}</a>
    </div>
</#macro>